package serviceLoader;

import java.util.ServiceLoader;

public class CipherTest {
    public static ServiceLoader<Cipher> cipherLoader = ServiceLoader.load(Cipher.class);

    public static void main(String[] args) {
        for (Cipher cipher : cipherLoader) {
            System.out.println(cipher.getClass().getName());
            System.out.println(cipher.strength());
        }
    }
}

// java -cp ch06 ch06/serviceLoader/CipherTest.java
